<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp" %>
<%@ page import="com.chanyachting.emall.util.RequestUtil" %>
<%@ page import="com.chanyachting.emall.domain.Member" %>
<%@ page import="com.chanyachting.emall.domain.Newsactivity" %>
<%@ page import="com.chanyachting.emall.service.MemberService" %>
<%@ page import="com.chanyachting.emall.service.NewsActivityService" %>
<%@ page import="com.chanyachting.emall.serviceImpl.NewsActivityServiceImpl" %>
<%@ page import="java.util.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>
</head>

<body>
<div class="tab_box">
	<div class="tab_menu">
    	<a href="#" class="current">审核新闻活动</a>
    </div>
	
</div>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="yes_border">
   <tr>
    <td colspan="7" align="center" bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" align="center"></td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center"></td>
      </tr>
    </table></td>
  </tr>
  
  
  <tr>
    
    <th  align="center">编号</th>
    <th  align="center">标题</th>
    <th  align="center">作者</th>
    <th  align="center">创建时间</th>
    <th  align="center">推荐到期时间</th>
    <th  align="center">创建会员</th>
    <th  align="center">操作</th>
  </tr>
  
  
  <%
  
  	//查询指定会员的已发布新闻活动
  	RequestUtil ru=new RequestUtil(request);
  
	List list=(List)ru.getAttribute("newsactivityList",new ArrayList());;
	
	if(list!=null && list.size()>0){
		
		Newsactivity na=null;
		
		for(int i=0;i<list.size();i++){
			
			na=(Newsactivity)list.get(i);
			
%>
<tr>
    <td align="center"><%= na.getId() %></td>
    <td><%= na.getTitle() %></td>
    <td align="center"><%= na.getAuthor() %></td>
    <td align="center"><%= na.getCreateDate() %></td>
    <td align="center"><%= na.getMaturityTime()==null?"":na.getMaturityTime() %></td>
    <td align="center"><%= na.getMemberId() %></td>
    <td align="center">
	    <a href="<%=root %>/adminBackend/newsactivity.do?method=show&id=<%=na.getId() %>">查看详细</a>
	</td>
  </tr>

<%
			
		}
		
		
	}
  
  %>
  
  
  <tr>
    <td colspan="7" bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" align="center"></td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center"></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

